<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>数组高级应用</title>
		<script>
			var w=new Array(4);
			w[0]="Monday";
			w[1]="Thuesday";
			w[2]="Thursday";
			w[3]="月底";
			w.push("Sunday");
			w["yiyue"]="February";
			w["eryue"]="January";
			w["sanyue"]="March";
			alert(w.length);//?  8  
			var n=prompt("请给数组添加一个元素:","苹果");
			w.push(n);
			for(var i in w)
			{
				document.write(i+"="+w[i]+"<br/>");
			}
		</script>
	</head>
	<body>
		 
	</body>
</html>
